//
//  TripModel.m
//  littleLight's Project-A
//
//  Created by dllo on 16/5/17.
//  Copyright © 2016年 light. All rights reserved.
//

#import "TripModel.h"

@implementation TripModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"user"])
    {
        self.model = [[TripUserModel alloc] init];
        [self.model setValuesForKeysWithDictionary:value];
        
    }
    if ([key isEqualToString:@"name"]) {
        self.myName = value;
    }
    
}
@end
